package my.climbing;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;
import android.view.animation.Animation.AnimationListener;
import android.widget.ImageView;

public class StartaActivity extends Activity {
    ImageView iv1;
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.start);
        Animation ani=new AlphaAnimation(1.0f, 0.0f);
               
        ani.setAnimationListener(new AnimationListener() {
			
			public void onAnimationStart(Animation animation) {
				// TODO Auto-generated method stub
				
			}
			
			public void onAnimationRepeat(Animation animation) {
				// TODO Auto-generated method stub
				
			}
			
			public void onAnimationEnd(Animation animation) {
				// TODO Auto-generated method stub
				Handler h=new Handler();
		        h.postDelayed(new Runnable() {
					
					public void run() {
						// TODO Auto-generated method stub
						
						Intent i=new Intent();
						i.setClass(StartaActivity.this, 
								ClimbingProjectActivity.class);
						startActivity(i);
						StartaActivity.this.finish();
						
					}
				}, 1000);
			}
		});
        ani.setDuration(0);
        iv1=(ImageView)findViewById(R.id.sssss);
        iv1.startAnimation(ani);
        
       
    }
}
